package dreamdancetiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// 天命宝箱配置
type DanceTreasureBox struct {
	Id           int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	WinWeight    int64          `json:"win_weight" gorm:"column:win_weight;type:bigint;default:0;not null;comment:中奖权重"`
	FailWeight   int64          `json:"fail_weight" gorm:"column:fail_weight;type:bigint;default:0;not null;comment:未中奖权重"`
	Least        int64          `json:"least" gorm:"column:least;type:bigint;default:0;not null;comment:前多少抽不中"`
	Most         int64          `json:"most" gorm:"column:most;type:bigint;default:0;not null;comment:多少抽必中"`
	ValidityList string         `json:"validity_list" gorm:"column:validity_list;type:varchar(255);default:'';not null;comment:有效期列表"`
	StartTime    int64          `json:"startTime" gorm:"column:start_time;type:bigint;default:0;not null;comment:开始时间"` // 开始时间
	EndTime      int64          `json:"endTime" gorm:"column:end_time;type:bigint;default:0;not null;comment:结束时间"`     // 结束时间
	CreateId     int64          `json:"create_id" gorm:"column:create_id;type:bigint;default:0;not null;comment:创建人id"` // 创建人id
	UpdateId     int64          `json:"update_id" gorm:"column:update_id;type:bigint;default:0;not null;comment:更新人id"` // 更新人id
	CreatedAt    time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt    time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt    gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
